package leader.action;

import leader.service.DirectPatentService;
import teacher.bean.Patent;

public class DirectPatentCancelcheckAction {
	private Patent patent;

	public Patent getPatent() {
		return patent;
	}

	public void setPatent(Patent patent) {
		this.patent = patent;
	}
	public String execute() {
		patent.setExamine(0);
		DirectPatentService PS = new DirectPatentService();
		PS.updatePatentState(patent);
		return "success";
	}
}
